<?php

namespace frontend\modules\shop\controllers;

use Yii;
use frontend\components\Controller;
use common\models\shop\ShopProductData;

/**
 * SPU相关接口
 * 
 * @author emhome<emhome@163.com>
 * @since 2.0
 */
class ProductController extends Controller {

    /**
     * SKU详情
     * @view view.php
     * @return mixed
     */
    public function actionView($id) {
        return ShopProductData::findOrFail([
            'product_id' => $id
        ]);
    }

}
